package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备类型管理对象 device_type
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
public class DeviceType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long deviceTypeId;

    /** 类型名 */
    @Excel(name = "类型名")
    private String typeName;

    /** 最大值 */
    @Excel(name = "最大值")
    private BigDecimal maxValue;

    /** 最小值 */
    @Excel(name = "最小值")
    private BigDecimal minValue;

    /** 步长 */
    @Excel(name = "步长")
    private BigDecimal step;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    public void setDeviceTypeId(Long deviceTypeId) 
    {
        this.deviceTypeId = deviceTypeId;
    }

    public Long getDeviceTypeId() 
    {
        return deviceTypeId;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setMaxValue(BigDecimal maxValue) 
    {
        this.maxValue = maxValue;
    }

    public BigDecimal getMaxValue() 
    {
        return maxValue;
    }
    public void setMinValue(BigDecimal minValue) 
    {
        this.minValue = minValue;
    }

    public BigDecimal getMinValue() 
    {
        return minValue;
    }
    public void setStep(BigDecimal step) 
    {
        this.step = step;
    }

    public BigDecimal getStep() 
    {
        return step;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceTypeId", getDeviceTypeId())
            .append("typeName", getTypeName())
            .append("maxValue", getMaxValue())
            .append("minValue", getMinValue())
            .append("step", getStep())
            .append("unit", getUnit())
            .toString();
    }
}
